package br.usp.pcs.basys2;

import java.io.InputStream;
import java.io.OutputStream;

import com.thoughtworks.xstream.XStream;

public class SimulationInputDao {

	public SimulationInput load(InputStream input) {
		XStream xstream = new XStream();
		return (SimulationInput) xstream.fromXML(input);
	}

	public void save(SimulationInput input, OutputStream output) {
		XStream xstream = new XStream();
		xstream.toXML(input, output);
	}

}
